<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let obj = {
      a: 1, 
      b: 2
    }
    let source1 = {a1: 1, 
      b1: 2}
    let source2 = {a2: 1, 
      b2: 2}
    Object.assign(obj, source1, source1);
    console.log(obj);
  </script>
</body>
</html>